/**
 * @Author: 焦质晔
 * @Date: 2019/6/20
 * @Last Modified by: mikey.zhaopeng
 * @Last Modified time: 2019-12-15 15:21:28
 */
import axios from '@/api/fetch';
import SERVER from '@/api/server';

// 经销商收车地址查询
export const getList = (params) => axios.post(`${SERVER.WHOLESALES}/dealerAddress/queryList`, params)
// 获取详情
export const getDetail = (params) => axios.get(`${SERVER.WHOLESALES}/dealerAddress/findById`, {params})
// 保存
export const postSave = (params) => axios.post(`${SERVER.WHOLESALES}/dealerAddress/saveAddress`, params)
// 导出
// export const exportList = (params) => axios.post(`/dealerAddress/export`, params,{responseType:'blob'})
// 经销商
export const dealerList = (params) => axios.get(`/api/cmscloud.channel/message/dealerAttach/dealerInfo/byAllInfo`, { params })

// / 导出
export const exporturl = params => axios.post(`/api/cmscloud.excel/downloadExcel/exportExcel/${params.CODE}`, params);


export const exportList = params => {
  return axios({
      url:`${SERVER.WHOLESALES}/dealerAddress/export`,
      method:'get',
      params:params,
      responseType: 'blob'
  });
};
